//
//  HRPlayManager.h
//  Hear
//
//  Created by mac on 2017/6/28.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol HRPlayManagerDelegate <NSObject>

@required
- (void)changeMusic;

@end
@interface HRPlayManager : NSObject
//播放状态
typedef NS_ENUM(NSInteger, FYPlayerCycle) {
    theSong = 1,
    nextSong = 2,
    isRandom = 3
};

//播放状态
typedef NS_ENUM(NSInteger, itemModel) {
    historyItem = 0,
    favoritelItem = 1
};
@property (nonatomic, weak) id<HRPlayManagerDelegate> delegate;


@property (nonatomic, strong) AVPlayer *player;
@property (nonatomic) BOOL isPlay;

/** 初始化 */
+ (instancetype)sharedInstance;
/** 清空属性 */
- (void)releasePlayer;

- (void)pauseMusic;
- (void)nextMusic;

- (void)stopMusic;

//播放音效
- (void)playSound:(NSString *)filename;
- (void)disposeSound:(NSString *)filename;

@end
